package com.hst.web.base.ui;

import com.hst.core.meta.MetaData;
import com.hst.core.meta.annotation.EAuth;
import com.hst.core.meta.annotation.EField;
import com.hst.core.meta.annotation.EInfo;
import com.hst.core.meta.annotation.FieldQuery;
import com.hst.web.base.entity.TCompanyDept;
import com.hst.web.base.proxy.CompanyDeptProxy;

@EAuth(value = "10011", edit = "1001101")
@EInfo(name = "company-dept", title = "部门管理", entity = TCompanyDept.class, proxy = CompanyDeptProxy.class)
public class CompanyDept extends MetaData {

	@EField(title = "部门编号", list = false, form = 0)
	private String deptCode;

	@EField(title = "企业",query = FieldQuery.EQ, editor = "select.company-all", viewer = "dict.company-all", validate = "required", role = "9")
	private String companyCode;
	
	@EField(title = "部门编码", query = FieldQuery.LIKE,validate = "required|max:30")
	private String code;

	@EField(title = "部门名称", query = FieldQuery.LIKE, validate = "required|max:50")
	private String deptName;

	@EField(title = "备注", validate = "max:50")
	private String mem;

	public String getDeptCode() {
		return deptCode;
	}

	public void setDeptCode(String deptCode) {
		this.deptCode = deptCode;
	}

	public String getDeptName() {
		return deptName;
	}

	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}

	public String getCompanyCode() {
		return companyCode;
	}

	public void setCompanyCode(String companyCode) {
		this.companyCode = companyCode;
	}

	public String getMem() {
		return mem;
	}

	public void setMem(String mem) {
		this.mem = mem;
	}
	
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

}
